package com.ziyia.a3_2_1;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.Button;

import java.util.jar.Attributes;

public class MyButton extends Button {

    private Context context;

    public MyButton(Context context, AttributeSet set) {
        super(context, set);
        this.context = context;
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        super.onTouchEvent(event);
        Log.d("--------事件回调机制--------", System.currentTimeMillis() + "");
        return false;
    }
}
